<?php
namespace app\admin\controller\system;

use app\admin\service\MenuService;

class Test 
{
    public function index()
    {
        $userRoleIds = session('admin.role_ids');
        $menuData = MenuService::getSystemMenuListByRole($userRoleIds);
        $menuTree = get_tree($menuData);
        dump($menuData);exit;
        
    }
}